package org.liuxw.bean;

import org.liuxw.util.DateFormatUtil;

public class Source {
    private String sourceDbtype;
    private String sourceDbname;
    private String sourceDbtableName;
    private String destinationDbtype;
    private String destinationDbname;
    private String destinationDbtableName;
    private String resourcelibraryRelativepath;
    private String sourcetableSql;
    private String createTime;

    public String getCreateTime() {
        if(createTime == null)
            createTime = DateFormatUtil.getNowDate("yyyy-MM-dd HH:mm:ss");
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getSourceDbtype() {
        return sourceDbtype;
    }

    public void setSourceDbtype(String sourceDbtype) {
        this.sourceDbtype = sourceDbtype;
    }

    public String getSourceDbname() {
        return sourceDbname;
    }

    public void setSourceDbname(String sourceDbname) {
        this.sourceDbname = sourceDbname;
    }

    public String getSourceDbtableName() {
        return sourceDbtableName;
    }

    public void setSourceDbtableName(String sourceDbtableName) {
        this.sourceDbtableName = sourceDbtableName;
    }

    public String getDestinationDbtype() {
        return destinationDbtype;
    }

    public void setDestinationDbtype(String destinationDbtype) {
        this.destinationDbtype = destinationDbtype;
    }

    public String getDestinationDbname() {
        return destinationDbname;
    }

    public void setDestinationDbname(String destinationDbname) {
        this.destinationDbname = destinationDbname;
    }

    public String getDestinationDbtableName() {
        return destinationDbtableName;
    }

    public void setDestinationDbtableName(String destinationDbtableName) {
        this.destinationDbtableName = destinationDbtableName;
    }

    public String getResourcelibraryRelativepath() {
        return resourcelibraryRelativepath;
    }

    public void setResourcelibraryRelativepath(String resourcelibraryRelativepath) {
        this.resourcelibraryRelativepath = resourcelibraryRelativepath;
    }

    public String getSourcetableSql() {
        return sourcetableSql;
    }

    public void setSourcetableSql(String sourcetableSql) {
        this.sourcetableSql = sourcetableSql;
    }

    @Override
    public String toString() {
        return "Source{" +
                "sourceDbtype='" + sourceDbtype + '\'' +
                ", sourceDbname='" + sourceDbname + '\'' +
                ", sourceDbtableName='" + sourceDbtableName + '\'' +
                ", destinationDbtype='" + destinationDbtype + '\'' +
                ", destinationDbname='" + destinationDbname + '\'' +
                ", destinationDbtableName='" + destinationDbtableName + '\'' +
                ", resourcelibraryRelativepath='" + resourcelibraryRelativepath + '\'' +
                ", sourcetableSql='" + sourcetableSql + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }
}
